/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Engine2D.item;

import Engine2D.item.resource.Resource;

/**
 *
 * @author Garys
 */
public class ResourceItem extends Item {
    
    
    private Resource resource;
    private int count;

    
    /**
     * 
     * @param resource
     */
    public ResourceItem(Resource resource){
        this.resource = resource;
    }
    
    /**
     * 
     * @return
     */
    public int getCount() {
        return count;
    }

    /**
     * 
     * @param count
     */
    public void setCount(int count) {
        this.count = count;
    }

    /**
     * 
     * @return
     */
    public Resource getResource() {
        return resource;
    }

    /**
     * 
     * @param resource
     */
    public void setResource(Resource resource) {
        this.resource = resource;
    }
    
    /**
     * 
     * @return
     */
    @Override
    public String getName(){
        return resource.getName();
    }
    
    
}
